package service.configuration.xstream;

import java.util.Date;

import service.configuration.IFieldDateConfig;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.basic.DateConverter;

@XStreamAlias("date")
public class FieldDateConfig implements IFieldDateConfig {
	@XStreamConverter(value=DateConverter.class)
	private Date min;
	@XStreamConverter(value=DateConverter.class)
	private Date max;
	private String format;
	
	public FieldDateConfig(Date min, Date max, String format) {
		this.min = min;
		this.max = max;
		this.format = format;
	}

	public Date getMin() {
		return min;
	}

	public void setMin(Date min) {
		this.min = min;
	}

	public Date getMax() {
		return max;
	}

	public void setMax(Date max) {
		this.max = max;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}
	
	
}
